home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Wonky Flux Batch 2019 02
/
Wonky_Flux_Batch_2019-02.zip
/
Wonky Flux Batch 2019-02
/
073 - ProSEL 3.3.dsk
/
PRINT.NAMES.bas
< prev
next >
Wrap
BASIC Source File
|
2019-02-17
|
2KB
|
48 lines
1 REM ************************
2 REM * *
3 REM * Program to print the *
4 REM * application list in *
5 REM * /HARD1/PROSEL. *
6 REM * *
7 REM ************************
8 REM
10 PRINT CHR$(12): HOME : PRINT : LOMEM: 4 *4096
20 ONERR GOTO 620
30 PRINT CHR$(4)"BLOAD /HARD1/PROSEL,A$2000"
40 POKE 216,0
50 PRINT "This program prints the selection"
60 PRINT "list in PROSEL. Do you want hard"
70 PRINT "copy? (Y/N) ";
80 GET A$: IF ASC(A$) > ASC("Z") THEN A$ = CHR$( ASC(A$) -32)
90 IF A$ = "N" THEN 120
100 IF A$ < >"Y" THEN 80
110 PR = 1: PRINT CHR$(21): PRINT CHR$(4)"PR#1"
120 PRINT :LOC = 2 *4096:LOC = LOC + PEEK(LOC +3) +256 * PEEK(LOC +4)
130 IF NOT PEEK(LOC) THEN 600
140 S$ = ""
150 L = PEEK(LOC): IF L >159 THEN S$ = S$ + CHR$(L -128)
160 IF L >128 THEN LOC = LOC +1: GOTO 150
170 IF NOT L THEN 600
180 P$ = "": FOR I = LOC +1 TO LOC +L
190 P$ = P$ + CHR$( PEEK(I)): NEXT I
200 LOC = I
210 L = PEEK(LOC): IF NOT L THEN 600
220 A$ = "": FOR I = LOC +1 TO LOC +L
230 A$ = A$ + CHR$( PEEK(I)): NEXT I
240 LOC = I
250 U$ = "<none>":L = PEEK(LOC): IF L = 0 OR L >127 THEN 500
260 U$ = "": FOR I = LOC +1 TO LOC +L
270 U$ = U$ + CHR$( PEEK(I)): NEXT I
280 LOC = I
500 PRINT : PRINT "Application: ";S$
510 PRINT "Prefix: ";P$
520 PRINT "Pathname: ";A$
530 PRINT "Startup: ";U$
540 GOTO 130
600 IF PR THEN PRINT CHR$(4)"PR#0"
610 END
620 POKE 216,0
630 PRINT CHR$(4)"CLOSE"
640 PRINT "Error: /HARD1/PROSEL not found."
650 PRINT "This program must be changed if you"
660 PRINT "have used another pathname for it."